package io.renren.modules.archive.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.archive.entity.ArchiveCollectEntity;
import io.renren.modules.sys.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ${comments}
 * 
 * @author lizeliang
 * @email 2749877017@qq.com
 * @date 2023-08-29 13:06:15
 */
@Mapper
public interface ArchiveCollectDao extends BaseMapper<ArchiveCollectEntity> {
    List<ArchiveCollectEntity> queryLocalMenu(Long menuId);

    List<ArchiveCollectEntity> queryLocalMenuHaveLevelNull(Long menuId);

    List<ArchiveCollectEntity> selectByParentIdAndLevel(@Param("archiveCollectEntity") ArchiveCollectEntity archiveCollectEntity);

    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     */
    List<ArchiveCollectEntity> queryListParentId(Long parentId);

}
